<?php
$yhendus=new mysqli("localhost", "if13", "ifikad", "if13_veeta");
$kask=$yhendus->prepare("SELECT id, nimi, toon FROM kassid");
$kask->bind_result($id, $nimi, $toon);
$kask->execute();
?>
<!doctype html>
<html>
<head>
<title>KASSILEHT</title>
</head>
<body>
<h1>KASSID</h1>
<?php
while($kask->fetch()){
echo "<h2 style="color: $toon">"$nimi</h2>";
}
?>
</body>
<Vaatasin kasse>
</html>
<?php
$yhendus->close();
?>
